import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '../components/HelloWorld'
import Form from '../components/Form'
import Echart from '../components/Echart'
import SelectForm from '../components/SelectForm'
import FormManger from '../components/FormManger'

Vue.use(Router);

export default new Router({
  mode: 'history',
  base: '/test/',  //添加的地方
  routes: [
    {
      //path就是在路由器那写的数据
      path: '/',
      //这个组件就是 router-view 跳转到的组件
      component: HelloWorld
    },
    {
      path: "/Form",
      component: Form
    },
    {
      path: "/Echart",
      component: Echart
    },
    {
      path: "/SelectForm",
      component: SelectForm
    },
    {
      path: "/FormManger",
      component: FormManger
    }
  ]
})
